package buildModel;

import java.util.ArrayList;
import java.util.List;

public abstract class Fruits {

    private List<String> grow=new ArrayList<String>();

    public abstract void color();

    public abstract void eat();

    public void fruitGrow(){
        for(String g:grow){
            if("color".equals(g)){
                color();
            }
            if ("eat".equals(g)){
                eat();
            }
        }
    }

    public void setGrow(List<String> grow){
        this.grow=grow;
    }
}
